package com.sdleyou.treepro.common.model.convert;

import com.sdleyou.treepro.common.model.dao.RegionDO;
import com.sdleyou.treepro.common.model.dao.WellDO;
import com.sdleyou.treepro.common.model.vo.WellOrderVO;
import com.sdleyou.treepro.common.model.vo.WellVO;
import org.springframework.beans.BeanUtils;

public class WellDO2WellVOConverter {

    public static WellVO convert(WellDO wellDO) {
        WellVO wellVO = new WellVO();
        wellVO.setWellId(wellDO.getWellId());
        wellVO.setWellName(wellDO.getWellName());
        wellVO.setStatus(wellDO.getStatus());
        wellVO.setChooseAt(wellDO.getChooseAt());
        wellVO.setTreeName(wellDO.getPreTreeName());
        wellVO.setTreeIcon(wellDO.getTreeIcon());
        wellVO.setTreeImage(wellDO.getTreeImage());
        wellVO.setUserId(wellDO.getUserId());
        return wellVO;
    }

    public static WellOrderVO convertOrderVO(WellDO wellDO) {
        WellOrderVO wellVO = new WellOrderVO();
        BeanUtils.copyProperties(wellDO, wellVO);
        return wellVO;
    }
}
